//
//  UIFont+QCStyle.m
//  QingCheng
//
//  Created by FYWCQ on 2017/7/28.
//  Copyright © 2017年 馍馍帝👿. All rights reserved.
//

#import "UIFont+QCStyle.h"

@implementation UIFont (QCStyle)

+ (UIFont *)qc_titleBoldFont {
    return [UIFont yf_boldfontWithName:@"PingFangSC-Semibold" size:18.0f];
}
+ (UIFont *)qc_titleFont {
    return [UIFont yf_fontWithName:@"PingFangSC-Semibold" size:18.0f];
}
+ (UIFont *)qc_largeFont {
    return [UIFont yf_fontWithName:@".PingFang-SC-Medium" size:17.0f];
}
+ (UIFont *)qc_standardFont {
    return [UIFont yf_fontWithName:@"PingFangSC-Regular" size:15.0f];
}
+ (UIFont *)qc_mediumFont {
    return [UIFont yf_fontWithName:@"PingFangSC-Regular" size:14.0f];
}
+ (UIFont *)qc_smallFont {
    return [UIFont yf_fontWithName:@"PingFangSC-Regular" size:13.0f];
}
+ (UIFont *)qc_xsFont {
    return [UIFont yf_fontWithName:@"PingFangSC-Regular" size:12.0f];
}
+ (UIFont *)qc_tinyFont {
    return [UIFont yf_fontWithName:@"PingFangSC-Regular" size:10.0f];
}



//----
+(UIFont *)yf_fontWithName:(NSString *)fontName size:(CGFloat)fontSize
{
    UIFont *font = [UIFont fontWithName:fontName size:fontSize] ? :[UIFont systemFontOfSize:fontSize];;
    
    return font;
}

+(UIFont *)yf_boldfontWithName:(NSString *)fontName size:(CGFloat)fontSize
{
    UIFont *font = [UIFont fontWithName:fontName size:fontSize] ? :[UIFont boldSystemFontOfSize:fontSize];;
    
    return font;
}


@end
